<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
	template="layout/template.xhtml">

	<ui:define name="body">

		<h:form id="projectReport" styleClass="edit">

			<rich:panel>
				<f:facet name="header">Project Report</f:facet>

				<s:decorate template="layout/edit.xhtml">
					<ui:define name="label">Projects</ui:define>
					<h:selectManyMenu value="#{projectReport.projects}"
						required="true">
						<s:selectItems value="#{reportableProjects}" var="project"
							label="#{project.label}" noSelectionLabel="Select Project(s)..." />
						<s:convertEntity />
						<s:validate />
					</h:selectManyMenu>
				</s:decorate>

				<s:decorate id="start" template="layout/edit.xhtml">
					<ui:define name="label">Start</ui:define>
					<rich:calendar value="#{projectReport.start}" locale="en/US"
						popup="true" datePattern="dd/MM/yyyy" showApplyButton="false"
						cellWidth="24px" cellHeight="22px" style="width:200px" />
				</s:decorate>

				<s:decorate id="end" template="layout/edit.xhtml">
					<ui:define name="label">End</ui:define>
					<rich:calendar value="#{projectReport.end}" locale="en/US"
						popup="true" datePattern="dd/MM/yyyy" showApplyButton="false"
						cellWidth="24px" cellHeight="22px" style="width:200px" />
				</s:decorate>

				<div style="clear:both">
					<span class="required">*</span>
					required fields
				</div>

			</rich:panel>

			<div class="actionButtons">

				<h:commandButton id="run" value="Run Report"
					action="#{projectReportAction.run}" />

			</div>
		</h:form>

	</ui:define>

</ui:composition>
